package com.black.app.domain.req.my.mydata;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * ClassName: AppMyDataWeightDetailEditReq
 * Package: com.black.app.domain.req.my.mydata
 * Description:
 *
 * @Author luo
 * @Create 2024/11/4 14:47
 * @Version 1.0
 */
@Data
@ApiModel(value = "AppMyDataWeightDetailEditReq", description = "体重记录编辑")
@ToString(callSuper = true)
public class AppMyDataWeightDetailEditReq {
    /**
     * 体重详情表id
     */
    @ApiModelProperty(value = "体重详情表id", required = true)
    @NotNull(message = "{id.not.null}")
    private Integer id;

    @ApiModelProperty(value = "用户id", required = true)
    @NotNull(message = "{id.not.null}")
    private Long userId;

    @ApiModelProperty(value = "日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    @ApiModelProperty(value = "开始体重", required = true)
    private Double stateData;

    @ApiModelProperty(value = "变化的体重", hidden = true)
    private Double endData;
}
